package com.yj.provider.pojo;

import com.yj.provider.validator.CheckLength;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
public class User {


    private int id;
    @CheckLength(min = 5)
    private String name;
    @NotBlank
    private String address;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }


}
